export function allDialogForm() {
  const status = [
    { value: 0, label: 'Top up' },
    { value: 1, label: '弹窗充值' },
  ]
  return [
    {
      type: 'select',
      label: '展示页面',
      prop: 'page_type',
      dicData: status,
      rules: [
        {
          required: true,
          message: '请选择展示页面',
        },
      ],
    },
    {
      label: '活动名称',
      prop: 'name',
      rules: [
        {
          required: true,
          message: '请输入活动名称',
        },
      ],
    },
    {
      label: '定价',
      prop: 'price',
      type: 'number',
      rules: [
        {
          required: true,
          message: '请输入定价',
        },
      ],
    },
    {
      label: '金币',
      prop: 'coins',
      type: 'number',
      rules: [
        {
          required: true,
          message: '请输入金币',
        },
      ],
    },
    {
      label: '奖金',
      prop: 'bonus',
      rules: [
        {
          required: true,
          message: '请输入奖金',
        },
      ],
    },
    {
      filterable: true,
      type: 'select',
      label: '奖金到期时间',
      prop: 'bonus_expired',
      dicData: this.bonusOption,
      rules: [
        {
          required: true,
          message: '请选择日期',
        },
      ],
    },
    {
      type: 'number',
      prop: 'weight',
      label: '权重',
    },
    {
      type: 'radio',
      label: '活动状态',
      prop: 'status',
      dicData: [
        { value: 1, label: '正常' },
        { value: 2, label: '禁用' },
      ],
      rules: [
        {
          required: true,
          message: '请选择活动状态',
        },
      ],
    },
  ]
}
